home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 3.5 KB | 151 lines | [TEXT/MPS ] |
- ;
- ; File: OSAGeneric.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__OSAGENERIC__') = 'UNDEFINED' THEN
- __OSAGENERIC__ SET 1
-
-
- IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
- include 'Errors.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
- include 'AppleEvents.a'
- ENDIF
- ; include 'Types.a' ;
- ; include 'Memory.a' ;
- ; include 'MixedMode.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Events.a' ;
- ; include 'Quickdraw.a' ;
- ; include 'QuickdrawText.a' ;
- ; include 'EPPC.a' ;
- ; include 'PPCToolbox.a' ;
- ; include 'AppleTalk.a' ;
- ; include 'Processes.a' ;
- ; include 'Files.a' ;
- ; include 'Notification.a' ;
-
- IF &TYPE('__OSA__') = 'UNDEFINED' THEN
- include 'OSA.a'
- ENDIF
- ; include 'AEObjects.a' ;
- ; include 'Components.a' ;
- ; NOTE: This interface defines a "generic scripting component."
- ; The Generic Scripting Component allows automatic dispatch to a
- ; specific scripting component that conforms to the OSA interface.
- ; This component supports OSA, by calling AppleScript or some other
- ; scripting component. Additionally it provides access to the default
- ; and the user-prefered scripting component.
- ;
-
- ; Component version this header file describes
- kGenericComponentVersion EQU $0100
-
- kGSSSelectGetDefaultScriptingComponent EQU $1001
- kGSSSelectSetDefaultScriptingComponent EQU $1002
- kGSSSelectGetScriptingComponent EQU $1003
- kGSSSelectGetScriptingComponentFromStored EQU $1004
- kGSSSelectGenericToRealID EQU $1005
- kGSSSelectRealToGenericID EQU $1006
- kGSSSelectOutOfRange EQU $1007
-
- ; get and set the default scripting component
- IF GENERATING68K THEN
- Macro
- _OSAGetDefaultScriptingComponent
- dc.w $2F3C
- dc.w $0000
- dc.w $1001
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetDefaultScriptingComponent
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _OSASetDefaultScriptingComponent
- dc.w $2F3C
- dc.w $0000
- dc.w $1002
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSASetDefaultScriptingComponent
- ENDIF
-
- ; get a scripting component instance from its subtype code
- IF GENERATING68K THEN
- Macro
- _OSAGetScriptingComponent
- dc.w $2F3C
- dc.w $0000
- dc.w $1003
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetScriptingComponent
- ENDIF
-
- ; get a scripting component selector (subType) from a stored script
- IF GENERATING68K THEN
- Macro
- _OSAGetScriptingComponentFromStored
- dc.w $2F3C
- dc.w $0000
- dc.w $1004
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGetScriptingComponentFromStored
- ENDIF
-
- ; get a real component instance and script id from a generic id
- IF GENERATING68K THEN
- Macro
- _OSAGenericToRealID
- dc.w $2F3C
- dc.w $0000
- dc.w $1005
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSAGenericToRealID
- ENDIF
-
- ; get a generic id from a real component instance and script id
- IF GENERATING68K THEN
- Macro
- _OSARealToGenericID
- dc.w $2F3C
- dc.w $0000
- dc.w $1006
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT OSARealToGenericID
- ENDIF
-
- ENDIF ; __OSAGENERIC__
-